/**
 * 
 */
package j2ee_pattern.composite_entity_pattern;

/**
 * @author Administrator
 *
 */
public class Client {
	 private CompositeEntity compositeEntity = new CompositeEntity();
	 public void printData(){
		 for(int i =0,len = compositeEntity.getData().length;i<len;i++){
			 System.out.println("Data :"+compositeEntity.getData()[i]);
		 }
	 }
	 public void setData(String data1, String data2){
	      compositeEntity.setData(data1, data2);
	   }
}
